import matplotlib.pyplot as plt

x = [1, 2, 3, 4, 5]
y = [2, 4, 6, 8, 10]

plt.plot(x, y)
plt.title("line")
plt.xlabel("X-axis")
plt.ylabel("Y-axis")
plt.legend(["Line"])
plt.xlim(0, 10)
plt.ylim(1, 20)
print(plt.style.available)
plt.style.use('grayscale')
plt.savefig("line_matplotlib.png", dpi=300)

plt.show()